package com.netty.rpc.service.impl;

import com.netty.rpc.annotation.RpcService;
import com.netty.rpc.service.CalcService;
import org.springframework.stereotype.Service;

@RpcService(clazz = CalcService.class)
@Service("CalcService")
public class CalcServiceImpl implements CalcService {

    @Override
    public Integer add(Integer a, Integer b){
        return a + b ;
    }

}
